using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._TransitFeed
{
    /// <summary>
    /// <para>GTFS Shapes To Features</para>
    /// <para>Converts a GTFS shapes.txt file from a GTFS public transit dataset to a polyline feature class showing the physical paths taken by vehicles in the public transit system.</para>
    /// <para>将 GTFS shapes.txt 文件从 GTFS 公共交通数据集转换为显示公共交通系统中车辆所走物理路径的折线要素类。</para>
    /// </summary>    
    [DisplayName("GTFS Shapes To Features")]
    public class GTFSShapesToFeatures : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GTFSShapesToFeatures()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_gtfs_shapes_file">
        /// <para>Input GTFS Shapes File</para>
        /// <para>A valid shapes.txt file from a GTFS dataset.</para>
        /// <para>GTFS 数据集中的有效 shapes.txt 文件。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class.</para>
        /// <para>输出要素类。</para>
        /// </param>
        public GTFSShapesToFeatures(object _in_gtfs_shapes_file, object _out_feature_class)
        {
            this._in_gtfs_shapes_file = _in_gtfs_shapes_file;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "GTFS Shapes To Features";

        public override string CallName => "conversion.GTFSShapesToFeatures";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_gtfs_shapes_file, _out_feature_class];

        /// <summary>
        /// <para>Input GTFS Shapes File</para>
        /// <para>A valid shapes.txt file from a GTFS dataset.</para>
        /// <para>GTFS 数据集中的有效 shapes.txt 文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input GTFS Shapes File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_gtfs_shapes_file { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class.</para>
        /// <para>输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        public GTFSShapesToFeatures SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}